package com.ruoyi.book.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 借阅信息对象 borrowinfo
 *
 * @author ruoyi
 * @date 2025-02-26
 */
public class Borrowinfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    private Long id;

    /**
     * 借阅号
     */
    @Excel(name = "借阅号")
    private String borrowid;

    /**
     * 图书编号
     */
    @Excel(name = "图书编号")
    private String bookid;

    /**
     * 借阅人
     */
    @Excel(name = "借阅人")
    private String borrower;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String phone;

    /**
     * 节约时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "节约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borrowtime;

    /**
     * 归还时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returntime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBorrowid(String borrowid) {
        this.borrowid = borrowid;
    }

    public String getBorrowid() {
        return borrowid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid;
    }

    public String getBookid() {
        return bookid;
    }

    public void setBorrower(String borrower) {
        this.borrower = borrower;
    }

    public String getBorrower() {
        return borrower;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setBorrowtime(Date borrowtime) {
        this.borrowtime = borrowtime;
    }

    public Date getBorrowtime() {
        return borrowtime;
    }

    public void setReturntime(Date returntime) {
        this.returntime = returntime;
    }

    public Date getReturntime() {
        return returntime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("borrowid", getBorrowid())
                .append("bookid", getBookid())
                .append("borrower", getBorrower())
                .append("phone", getPhone())
                .append("borrowtime", getBorrowtime())
                .append("returntime", getReturntime())
                .toString();
    }
}
